#pragma once

#include <exception>
#include "Failure.h"

#define MOCKITNOW_STATIC_ASSERT(condition, message) \
	do \
	{ \
		char ERROR_##message[((condition) == false) ? 0 : 1]; \
		(void)ERROR_##message;\
	} while(0)

#define MOCKITNOW_ASSERT(condition) \
	do \
	{ \
		if ((condition) == false) \
			throw FailureException(#condition); \
	} while(0)
